package com.fingard.dsp.bank.reqrespobj.elecbillquery;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.elecbillquery.detail.ReqB007BillKzsrQryDetail;
import com.fingard.xml.XmlTextReader;

/**
 * Created by dell on 2017/10/1.
 */
public class ReqB007BillKzsrQry extends RequestBase {
    /// 银行账号
    public String actNum;
    public String billNo;
    public String kzsrType;
    public String kzsrName;
    public String billAmt;
    public String kzsrBnkCode;

    public ReqB007BillKzsrQryDetail detail;

    public boolean readRecord() throws Exception {
        detail = null;
        if (xmlReader.read("/ATSYH/TransReq/TransParam")) {
            detail = new ReqB007BillKzsrQryDetail(xmlReader.readedXElement);
            return true;
        } else {
            return false;
        }
    }


    private XmlTextReader xmlReader;

    public ReqB007BillKzsrQry(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
    }
}
